<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head th:replace="~{OP/_fragments ::head(~{::title})}">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>博客管理</title>
<!--    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">-->
    <link rel="stylesheet" href="../../static/css/index.css">
    <link rel="stylesheet" href="../../static/Semantic-UI/semantic.css">
    <link rel="stylesheet" href="../../static/Semantic-UI/semantic.css">
</head>
<body>

<!--导航-->
<nav th:replace="~{OP/_fragments ::menu(0)}" class="ui  inverted attached segment m-padded-tb-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui red header item">后台管理</h2>
            <a href="#" class="m-item item m-mobile-hide"><i class="small home icon"></i>博客</a>
            <a href="#" class="m-item item m-mobile-hide" ><i class="small idea icon"></i>分类</a>
            <a href="#" class=" m-item item m-mobile-hide"><i class="small tags icon"></i>标签</a>
            <div class="right m-item item m-mobile-hide menu">
                <div class=" ui  dropdown item">
                    <div class="text"><img src="../../static/images/shana1.jpg" class="ui avatar image">
                        贽殿遮那
                    </div>
                    <i class="dropdown icon"></i>
                    <div class="menu">
                        <a href="" class="item">注销</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>


<div class="ui attached pointing menu">

    <div class="ui container">
        <div class="right menu">
            <a href="" class="item">发表</a>
            <a href="" class="red active item ">列表</a>
        </div>
    </div>
</div>


<div class="m-container-small m-padded-tb-big">
    <div class="ui container">
        <form action="#" class="ui segment form" method="post">
            <div class="inline fields">
                <div class="field">
                    <input type="text" name="title" placeholder="标题">
                </div>
                <div class="field">
                    <div class="ui selection dropdown">
                        <input type="text" class="hidden" name="type">
                        <i class="dropdown icon"></i>
                        <div class="default text">分类</div>
                        <div class="menu">
                            <div class="item" data-value="0">无</div>
                            <div class="item" data-value="1">公告</div>
                            <div class="item" data-value="2">开发者手册</div>
                            <div class="item" data-value="3">游戏</div>
                            <div class="item" data-value="4">方法论</div>
                            <div class="item" data-value="5">资讯</div>
                            <div class="item" data-value="6">生活杂谈</div>
                            <div class="item" data-value="7">音乐</div>
                            <div class="item" data-value="8">ACG</div>
                            <div class="item" data-value="9">科技</div>
                            <div class="item" data-value="10">思考与感悟</div>
                        </div>
                    </div>
                </div>
                <div class="field">
                    <div class="ui checkbox">
                        <input type="checkbox" name="recommend" id="recommend">
                        <label for="recommend">推荐</label>
                    </div>
                </div>
                <div class="ui field">
                    <button class="ui mini basic red button"><i class="icon search"></i>搜索</button>
                </div>
            </div>
        </form>

        <table class="ui celled table">
            <thead>
                <tr>
                    <th></th>
                    <th>标题</th>
                    <th>类型</th>
                    <th>推荐</th>
                    <th>更新时间</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
            <tr>
                <td>1</td>
                <td>玩原审挽的</td>
                <td>游戏</td>
                <td>是</td>
                <td>1919-8-10 21:17</td>
                <td>
                    <a href="" class="ui mini teal button basic">编辑</a>
                    <a href="" class="ui mini red button basic">删除</a>
                </td>

            </tr>
            <tr>
                <td>2</td>
                <td>玩原审挽的</td>
                <td>游戏</td>
                <td>是</td>
                <td>1919-8-10 21:17</td>
                <td>
                    <a href="" class="ui mini teal button basic">编辑</a>
                    <a href="" class="ui mini red button basic">删除</a>
                </td>

            </tr>
            <tr>
                <td>3</td>
                <td>玩原审挽的</td>
                <td>游戏</td>
                <td>是</td>
                <td>1919-8-10 21:17</td>
                <td>
                    <a href="" class="ui mini teal button basic">编辑</a>
                    <a href="" class="ui mini red button basic">删除</a>
                </td>

            </tr>
            <tr>
                <td>4</td>
                <td>玩原审挽的</td>
                <td>游戏</td>
                <td>是</td>
                <td>1919-8-10 21:17</td>
                <td>
                    <a href="" class="ui mini teal button basic">编辑</a>
                    <a href="" class="ui mini red button basic">删除</a>
                </td>

            </tr>
            <tr>
                <td>5</td>
                <td>玩原审挽的</td>
                <td>游戏</td>
                <td>是</td>
                <td>1919-8-10 21:17</td>
                <td>
                    <a href="" class="ui mini teal button basic">编辑</a>
                    <a href="" class="ui mini red button basic">删除</a>
                </td>

            </tr>
            <tr>
                <td>6</td>
                <td>玩原审挽的</td>
                <td>游戏</td>
                <td>是</td>
                <td>1919-8-10 21:17</td>
                <td>
                    <a href="" class="ui mini teal button basic">编辑</a>
                    <a href="" class="ui mini red button basic">删除</a>
                </td>

            </tr>

            </tbody>

            <tfoot>
                <tr>
                    <th colspan="6">
                        <div class="ui mini right floated pagination menu">
<!--                            <a class="icon item">-->
<!--                                <i class="left chevron icon"></i>-->
<!--                            </a>-->
<!--                            <a class="item">1</a>-->
<!--                            <a class="item">2</a>-->
<!--                            <a class="item">3</a>-->
<!--                            <a class="item">4</a>-->
<!--                            <a class="icon item">-->
<!--                                 <i href="" class="right chevron icon"></i>-->
<!--                            </a>-->

                            <a class="class item">上一页</a>
                            <a class="class item">下一页</a>
                        </div>
                        <a href="#" class="ui mini left floated black basic button">新增</a>
                    </th>
                </tr>
            </tfoot>
        </table>
    </div>
</div>






<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>

<script>
    $('.menu.toggle').click(function (){
        $('.m-item').toggleClass('m-mobile-hide');
    });

    $('.ui.dropdown')
        .dropdown();

</script>

</body>
</html>